package com.hnust.root.web.config;

import cn.hutool.setting.dialect.Props;

/**
 * @Author zhusir
 * @Date 2019/2/10
 * @Desc 获取一些自定义的配置
 */
public class GlobalConfig {
    private static Props props = new Props("application.properties");
    private static String jwtHeader = props.getStr("jwt.header");
    private static long expire = props.getInt("jwt.expire");
    private static String endPoint = props.getStr("end.point");
    private static String ossDomain= props.getStr("oss.domain");
    private static String bucketName = props.getStr("oss.bucketName");
    private static String secret = props.getStr("jwt.secret");

    public static String getJwtHeader() {
        return jwtHeader;
    }

    public static long getExpire() { return expire; }

    public static String getEndPoint() {
        return endPoint;
    }

    public static String getOssDomain() { return ossDomain; }

    public static String getBucketName() { return bucketName; }

    public static String getSecret() {
        return secret;
    }

}
